package xjf;

public class Method {
    private  int a;
    private String name;

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name=name;
    }

    public Method(int a, String name) {
        this.a = a;
        this.name = name;
    }

    public Method() {

    }

    @Override
    public String toString() {
        return "我叫" + name +"今年"+a+"岁了";
    }
}
